package com.homework.service.impl;

import com.homework.entity.Information;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.homework.dao.InformationMapper;
import com.homework.service.InformationService;

import java.util.List;

@Service
public class InformationServiceImpl implements InformationService{

    @Resource
    private InformationMapper informationMapper;

    @Override
    public List<Information> findAll() {
        return informationMapper.selectAll();
    }

    @Override
    public List<Information> findNew() {
        return informationMapper.selectNew();
    }
}
